//Linux C plus plus file
/************************************************************************
*
*
*       			FileName:main.cpp
*
*         			Author.wzj
*
*       			Email:345517039@qq.com
*
*      	    		Create:2017-06-22 23:35:28
*
*      		    	Description:-
*
*
*************************************************************************/
#include "confMgr.h"
#include "thread.h"
#include "listenThread.h"
#include "workerThread.h"
#include "utils.h"
#include "server.h"
#include "log.h"
/**
 * @brief  主函数 
 *
 * @param argc
 * @param argv[]
 *
 * @return 
 */

confMgr *conf;

int main(int argc, char *argv[]){ 	
	std::vector<int > localqueue;
	conf = confMgr::getInstance();
	conf->init(".");
	LogManger *log = LogManger::getInstance();
	log->LogInit(conf, localqueue);
	thread *work = new workerThread();
	work->init((std::vector<int> *)(&localqueue));
	thread *listen = new ListenThread();
	listen->init((std::vector<int> *)(&localqueue));
	while(1){
		sleep(5);
	}
	DEBUG_TRACE(2,("[ INFO ]SYSTEM EXIT!\n"));
}

